//
//  Post.h
//
// RE:: comments
// interface for Post class
//
// An object of this type corresponds to one specific story / item that we sift out of an RSS feed
// "Post" is a simple data container, but it has Property's named to match tags that we expect to find
//    in the XML data glob that we read off of the net
// This iVar naming convention allows us to "cheat" and get the contents of the tags almost for free:
// We act like we're going to call a defaultly-named accessor of a property to "test the water" and 
//    see if a Post object can respond to such a message (in other words, does it have an iVar of that name?)
//    and if so, we store the data from the gooey center of the XML element into the iVar / Property that has
//    the same name as the tags <tag></tag> that surround the element. Clever, no?

#import <Foundation/Foundation.h>


@interface Post : NSObject {
	BOOL isRead;	// YES or NO: has this Post been read by the user yet?
	
    NSString *title;		// from here on down, these iVars are named to match XML tags from the RSS feed
    NSString *description;
	NSString *guid;
	
	// RE:: added this one, to use as replacement for "detailText" in table entries
	NSString *pubDate;
	NSString *summary;
	NSString *content;
	NSString *link;
	NSString *name;
}

@property (assign, nonatomic) BOOL isRead;
@property (copy, nonatomic) NSString *title;
@property (copy, nonatomic) NSString *description;
@property (copy, nonatomic) NSString *guid;

@property (copy, nonatomic) NSString *pubDate;
@property (copy, nonatomic) NSString *summary;
@property (copy, nonatomic) NSString *content;
@property (copy, nonatomic) NSString *link;
@property (copy, nonatomic) NSString *name;

@end
